/*
 * @Desc: api 映射
 * @Author: feim
 * @return: {Object}
 * @Date: 2022-06-17 14:53:49
*/
const files = require.context('../api', false, /\.js$/);
const modules = {};

files.keys().forEach(key => {
  if (key !== './index.js') {
    modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default;
  }
});

export default {
  ...modules
};
